Skip to content

Conversation

@thibault
Copy link
Collaborator

@thibault thibault commented Jan 8, 2026

https://trello.com/c/kdwB6zOz/2010-invitation-v2-1-2-am%C3%A9lioration-flow-cr%C3%A9ation-compte-et-invitation

Accepter une invitation ne se fait plus via une url dédiée, mais grâce à un middleware.

Si l'utilisateur n'est pas connecté, le token est stocké en session en attendant.

@tristanrobert
Copy link

tristanrobert commented Jan 8, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@thibault thibault requested review from numahell and pyDez January 8, 2026 09:11
Copy link
Collaborator

@pyDez pyDez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sympa le middleware et la couverture de test !

J'ai mis un ou deux petits commentaires

Comment on lines 132 to 136
path(
"<slug:reference>/invitations/<slug:token>/",
PetitionProjectAcceptInvitation.as_view(),
name="petition_project_accept_invitation",
),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si on casse l'ancienne route, il n'y aura pas de rétrocompatibilité pour les jetons déjà émis

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bien vu, merci pour ta vigileance. J'ai réintroduit la vue pour ne pas casser les anciens tokens.


<p>
Si vous ne recevez aucune réponse dans ce délai, n’hésitez pas à nous contacter par retour d’email à <a href="mailto:[email protected]">[email protected]</a>
En cas de difficulté d’accès ou de problème avec votre compte, n’hésitez pas à contacter notre support :
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cette phrase est en doublon non ?

Copy link
Collaborator

@numahell numahell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'ai l'impression que c'est bon. C'est nice, j'aurais pas pensé à mettre cette mécanique dans le middleware.

@thibault thibault merged commit b683938 into main Jan 12, 2026
9 checks passed
@thibault thibault deleted the invitation_v2 branch January 12, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants